#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef short int bool;
#define true    1
#define false   0

#define N 100

char password[N] = "";

char vowel[5] = {'a', 'e', 'i', 'o', 'u'};

bool checkvowel(char ch)
{
    int j = 0;
    for(j = 0; j < 5; j++)
    {
        if(ch == vowel[j])
        {
            return true;
        }
    }
    return false;
}

/*
It must contain at least one vowel.
*/
bool check1()
{
    int i = 0;
    for(i = 0; i < strlen(password); i++)
    {
        if(checkvowel(password[i]) == true)
        {
            return true;
        }
    }

    return false;
}
/*
It cannot contain three consecutive vowels or three consecutive consonants.
*/
bool check2()
{
    int i = 0;
    int cc = 0, vc = 0;

    for(i = 0; i < strlen(password); i++)
    {
        if(checkvowel(password[i]) == true)
        {
            vc++;
            cc = 0;
        }
        else
        {
            cc++;
            vc = 0;
        }
        if(cc == 3 || vc == 3)
        {
            return false;
        }
    }
    return true;
}
/*
It cannot contain two consecutive occurrences of the same letter, except for 'ee' or 'oo'.
*/
bool check3()
{
    int i = 0;
    char lastch = password[0];

    for(i = 1; i < strlen(password); i++)
    {
        lastch = password[i-1];
        if(password[i] == 'e' || password[i] == 'o')
        {
            continue;
        }
        else
        {
            if(lastch == password[i])
            {
                return false;
            }
        }
    }
    return true;
}

int main()
{
    //freopen("bin\\debug\\in.txt", "r", stdin);

    while(true)
    {
        scanf("%s", password);
        if(strcmp(password, "end") == 0)
        {
            break;
        }
        if(check1() && check2() && check3())
        {
            printf("<%s> is acceptable.\n", password);
        }
        else
        {
            printf("<%s> is not acceptable.\n", password);
        }
    }

    return 0;
}
